package main

import (
	"fmt"
	"time"
)

func main() {

	channel := make(chan string, 10)
	fmt.Println("主程开始")
	go func() {
		fmt.Println("执行开始")
		time.Sleep(10 * time.Second)
		channel <- "执行结束"
	}()

	fmt.Println("主程结束")
	fmt.Println(<-channel)
}
